PError$ = "#" + LTrim$(Str$(x&)) + ", " + "Couldn't allocate memory for FileName or Filter."
ElseIf x& = 32751 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The call to WinHelp failed. Check the Help property values."
ElseIf x& = 28671 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The PD_RETURNDEFAULT flag was set in the Flags member of PRINTDLG data structure, but either hDevMode or hDevNames field were nonzero."
ElseIf x& = 28670 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "Load of the required resources failed."
ElseIf x& = 28669 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The common dialog function failed to parse the strings in the [devices] section of the WIN.INI file."
ElseIf x& = 28668 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The PD_RETURNDEFAULT flag was set in the Flags member of PRINTDLG data structure, but either hDevMode or hDevNames field were nonzero."
ElseIf x& = 28667 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The PRINTDLG function failed to load the specified printer's device driver."
ElseIf x& = 28666 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The printer device-driver failed to initialize a DEVMODE data structure (print driver written for WIN 3.0 or later)."
ElseIf x& = 28665 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The PRINTDLG function failed during initialization."
ElseIf x& = 28664 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "No printer device-drivers were found."
ElseIf x& = 28663 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "A default printer does not exist."
ElseIf x& = 28662 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The data in the DEVMODE and DEVNAMES data structrues describes two different printers."
ElseIf x& = 28661 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The PRINTDLG function failed when it attempted to create an information context."
ElseIf x& = 28660 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The [devices] section of the WIN.INI file does not contain an entry for requested printer."
ElseIf x& = 24574 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "No fonts exist. Must set internally to CF_BOTH, CF_PRINTERFONTS or CF_SCREENFONTS."
ElseIf x& = 20478 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "An attempt to subclass a listbox failed due to insufficient memory."
ElseIf x& = 20477 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "File name is invalid."
ElseIf x& = 20476 Then
PError$ = "#" + LTrim$(Str$(x&)) + ", " + "The buffer at which the member lpstrFile points to is too small."